package com.fyt.reachgo.domain.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentLikeMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long commentId;
    private Long userId;
    private boolean isLike;
    private Date createTime = new Date();

    public CommentLikeMessage(Long commentId, Long userId, boolean isLike) {
        this.commentId = commentId;
        this.userId = userId;
        this.isLike = isLike;
    }
}
